<?php
    $user_id = Yii::app()->user->id;
?>

<h2>Timeline API</h2>
<ol>
<?php
    genLink($this->createUrl("/index-test.php/api/tweet/home_timeline"), "Home timeline");
    genLink($this->createUrl("/index-test.php/api/tweet/user_timeline",array("user_id"=>$user_id)), "User timeline");
?>
</ol>

<h2>Tweet API</h2>
<ol>
<?php
    genLink($this->createUrl("/index-test.php/api/tweet/post",
            array(
                "content"=>"toilatoi"
            )),
            "Post a tweet"
    );
    genLink($this->createUrl("/index-test.php/api/tweet/tweetInfo",array("tweet_id"=>"297")), "Show a tweet");
    genLink($this->createUrl("/index-test.php/api/tweet/retweet",
            array(
                "tweet_id"=>"297",
            )),
            "Retweet a tweet"
    );
    genLink($this->createUrl("/index-test.php/api/tweet/unretweet",
            array(
                "tweet_id"=>"297",
            )),
            "Unretweet a tweet"
    );
    genLink($this->createUrl("/index-test.php/api/tweet/reply",
            array(
                "tweet_id"=>"297",
                "content"=>"toilatoi"
            )),
            "Reply a tweet"
    );
    genLink($this->createUrl("/index-test.php/api/tweet/favoritedBy",
            array(
                "tweet_id"=>"297",
            )),
            "Display list user favorited tweet"
    );
    genLink($this->createUrl("/index-test.php/api/tweet/retweetedBy",
            array(
                "tweet_id"=>"297",
            )),
            "Display list user retweeted tweet"
    );
    genLink($this->createUrl("/index-test.php/api/tweet/countRefav",array("tweet_id"=>"297")), "Count Refav");
    genLink($this->createUrl("/index-test.php/api/tweet/listReplyParent",
            array(
                "tweet_id"=>"297",
            )),
            "Get list previous converstation of a tweet"
    );
    genLink($this->createUrl("/index-test.php/api/tweet/listReply",
            array(
                "tweet_id"=>"297",
            )),
            "Get list previous converstation of a tweet"
    );
    genLink($this->createUrl("/index-test.php/api/tweet/destroy",
            array(
                "tweet_id"=>"7777777",
            )),
            "Destroy a tweet"
    );
    genLink($this->createUrl("/index-test.php/api/tweet/tweetExpand",
            array(
                "tweet_id"=>"297",
            )),
            "Expand information of a tweet"
    );
?>
</ol>

<h2>Site API</h2>
<ol>
<?php
    genLink($this->createUrl("/index-test.php/api/site/signin",
            array(
                "username"=>"ngoc",
                "password"=>"oot",
            )),
            "Login"
    );
    genLink($this->createUrl("/index-test.php/api/site/autologin",
            array(
            )),
            "Auto Login"
    );
    genLink($this->createUrl("/index-test.php/site/logout"), "Logout");
?>
</ol>